﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace Tango.Core.Data
{
    public interface IEFRepository<T> where T : class,new()
    {
        IQueryable<T> GetAll();
        T Get(long ID);
        T Get(string ID);
        void Update(T entity);
        void Add(T entity);
        void Delete(T entity);

        void Delete(Expression<Func<T, bool>> where);
        T Get(Expression<Func<T, bool>> where);
        IQueryable<T> GetMany(Expression<Func<T, bool>> where);
    }
}
